<template>
	<!--  -->
	<div class="">
    <button @click="back">
      返回首页
    </button>
	</div>
</template>

<script setup lang="ts">
	import { ref } from 'vue'
  import { useRouter, useRoute } from 'vue-router'

	// const props = defineProps({})
	// const emit = defineEmits([''])

  const router = useRouter()
  console.log('page01-route:', useRoute())

	function back () {
    router.push({
      path: '/',
    })
	}



	// defineExpose({})
</script>

<style lang="less" scoped>

</style>
